Cayenne User Documentation
Stored Procedures

In addition to mapping database tables and views as entities, Cayenne allows mapping and executing database stored procedures. Just like table structure is described by DbEntities, stored procedures are described by Procedure class. Stored procedures are created using CayenneModeler, and are executed using ProcedureQuery, as described in the following chapters.

.